home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-04
/
422mods.zip
/
PARA0002.422
< prev
next >
Wrap
Text File
|
1993-01-31
|
3KB
|
94 lines
Para0002.Mod Puts a color box around Gfiles, counts files
Parapuke #1 @18251
Fri Jan 29 10:03:38 1993
╒═════════════════════════════════════════════════════════════════╕
│ Mod Name: Para0002.mod Author: Parapuke etal │
│ Difficulty: Cut and paste (easy) Files : Gfiles.C │
│ WWIV Vesion: 4.22 Date : 01-29-93 │
│ Description: Places a colored box around your Gfiles Section │
│ along with a second box around the individual │
│ files themselves in each separate G file. │
╘═════════════════════════════════════════════════════════════════╛
This mod is a conversion of earlier mods that I have had success with to
mods which are easily usable by the sysops using WWIV v4.22. This is
primarily a cosmetic modification that Russ Hasslage has asked for that he
saw on my system. With the addition of the external strings, I was running
into some difficulty on just how to place this so came up with the idea of
simply doing a cut and paste of the entire two voids involved. In
addition, I have not removed the color codes so change the colors to suit
your needs or desires.....
As for who exactly to credit for the original mods, I really couldn't say.
I have had this one since version 4.12 and it continues to work for me...
Now, lets begin.
Back up your source code!!!
watch for wrap around on this one people. The top bar is long...
in Gfiles.C, look for void list_sec (int *...... cut out this and the
next void. Replace with this.
************************************cut here******************************
void list_sec(int *map, int nmap)
{
int i,abort;
char s[81];
abort=0;
pla(" ",&abort);
pla(" ",&abort);
if (okansi()) {
pla(" 5 Num 7G-Files Sections Available:",&abort);
pla("3╔════╦═══════════════════════════════════════════════════════════════╗0 ",&abort);
}
for (i=0; (i<nmap) && (!abort) && (!hangup); i++) {
if (okansi()) {
sprintf(s,"3║2%3d.3║ 1%-62s3║",i+1,gfilesec[map[i]].name);
pla(s,&abort); }
}
if (okansi()) {
pla("3╚════╩═══════════════════════════════════════════════════════════════╝0 ",&abort);
}
nl();
}
void list_gfiles(gfilerec *g, int nf)
{
int i,abort;
char s[81];
abort=0;
pla("",&abort);
pla("",&abort);
if (okansi()) {
pla(" 7G-Files in this Section:",&abort);
pla("3╔════╦═══════════════════════════════════════════════════════════════╗0 ",&abort);
}
if ((nf==0) && (abort==0)) {
nl();
pl("None.");
nl();
}
for (i=0; (i<nf) && (!abort) && (!hangup); i++) {
if (okansi ()) {
sprintf(s,"3║2%3d.3║ 1%-62s3║0",i+1,g[i].description);
pla(s,&abort); }
}
if (okansi()) {
pla("3╚════╩═══════════════════════════════════════════════════════════════╝0 ",&abort);
}
nl();
if ((!abort) && (cs())) {
pl("A. Add G-files");
pl("D. Delete G-files");
nl();
}
}
*********************************end cut*********************************